/******************************************************************************
 * Product: Adempiere ERP & CRM Smart Business Solution                       *
 * Copyright (C) 1999-2007 ComPiere, Inc. All Rights Reserved.                *
 * This program is free software, you can redistribute it and/or modify it    *
 * under the terms version 2 of the GNU General Public License as published   *
 * by the Free Software Foundation. This program is distributed in the hope   *
 * that it will be useful, but WITHOUT ANY WARRANTY, without even the implied *
 * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.           *
 * See the GNU General Public License for more details.                       *
 * You should have received a copy of the GNU General Public License along    *
 * with this program, if not, write to the Free Software Foundation, Inc.,    *
 * 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA.                     *
 * For the text or an alternative of this public license, you may reach us    *
 * ComPiere, Inc., 2620 Augustine Dr. #245, Santa Clara, CA 95054, USA        *
 * or via info@compiere.org or http://www.compiere.org/license.html           *
 *****************************************************************************/
/** Generated Model - DO NOT CHANGE */
package org.compiere.model;

import java.math.BigDecimal;
import java.sql.ResultSet;
import java.sql.Timestamp;
import java.util.Properties;
import org.compiere.util.Env;

/** Generated Model for fi_reconciliationactline
 *  @author Adempiere (generated) 
 *  @version Release 3.7.0LTS - $Id$ */
public class X_fi_reconciliationactline extends PO implements I_fi_reconciliationactline, I_Persistent 
{

	/**
	 *
	 */
	private static final long serialVersionUID = 20130718L;

    /** Standard Constructor */
    public X_fi_reconciliationactline (Properties ctx, int fi_reconciliationactline_ID, String trxName)
    {
      super (ctx, fi_reconciliationactline_ID, trxName);
      /** if (fi_reconciliationactline_ID == 0)
        {
			setcredit (Env.ZERO);
			setDateAcct (new Timestamp( System.currentTimeMillis() ));
			setdebet (Env.ZERO);
			setDescription (null);
			setFI_ReconciliationAct_ID (0);
			setfi_reconciliationactline_ID (0);
        } */
    }

    /** Load Constructor */
    public X_fi_reconciliationactline (Properties ctx, ResultSet rs, String trxName)
    {
      super (ctx, rs, trxName);
    }

    /** AccessLevel
      * @return 3 - Client - Org 
      */
    protected int get_AccessLevel()
    {
      return accessLevel.intValue();
    }

    /** Load Meta Data */
    protected POInfo initPO (Properties ctx)
    {
      POInfo poi = POInfo.getPOInfo (ctx, Table_ID, get_TrxName());
      return poi;
    }

    public String toString()
    {
      StringBuffer sb = new StringBuffer ("X_fi_reconciliationactline[")
        .append(get_ID()).append("]");
      return sb.toString();
    }

	public org.compiere.model.I_C_Currency getC_Currency() throws RuntimeException
    {
		return (org.compiere.model.I_C_Currency)MTable.get(getCtx(), org.compiere.model.I_C_Currency.Table_Name)
			.getPO(getC_Currency_ID(), get_TrxName());	}

	/** Set Currency.
		@param C_Currency_ID 
		The Currency for this record
	  */
	public void setC_Currency_ID (int C_Currency_ID)
	{
		if (C_Currency_ID < 1) 
			set_Value (COLUMNNAME_C_Currency_ID, null);
		else 
			set_Value (COLUMNNAME_C_Currency_ID, Integer.valueOf(C_Currency_ID));
	}

	/** Get Currency.
		@return The Currency for this record
	  */
	public int getC_Currency_ID () 
	{
		Integer ii = (Integer)get_Value(COLUMNNAME_C_Currency_ID);
		if (ii == null)
			 return 0;
		return ii.intValue();
	}

	/** Set credit.
		@param credit credit	  */
	public void setcredit (BigDecimal credit)
	{
		set_Value (COLUMNNAME_credit, credit);
	}

	/** Get credit.
		@return credit	  */
	public BigDecimal getcredit () 
	{
		BigDecimal bd = (BigDecimal)get_Value(COLUMNNAME_credit);
		if (bd == null)
			 return Env.ZERO;
		return bd;
	}

	/** Set creditkzt.
		@param creditkzt creditkzt	  */
	public void setcreditkzt (BigDecimal creditkzt)
	{
		set_Value (COLUMNNAME_creditkzt, creditkzt);
	}

	/** Get creditkzt.
		@return creditkzt	  */
	public BigDecimal getcreditkzt () 
	{
		BigDecimal bd = (BigDecimal)get_Value(COLUMNNAME_creditkzt);
		if (bd == null)
			 return Env.ZERO;
		return bd;
	}

	/** Set Account Date.
		@param DateAcct 
		Accounting Date
	  */
	public void setDateAcct (Timestamp DateAcct)
	{
		set_Value (COLUMNNAME_DateAcct, DateAcct);
	}

	/** Get Account Date.
		@return Accounting Date
	  */
	public Timestamp getDateAcct () 
	{
		return (Timestamp)get_Value(COLUMNNAME_DateAcct);
	}

	/** Set debet.
		@param debet debet	  */
	public void setdebet (BigDecimal debet)
	{
		set_Value (COLUMNNAME_debet, debet);
	}

	/** Get debet.
		@return debet	  */
	public BigDecimal getdebet () 
	{
		BigDecimal bd = (BigDecimal)get_Value(COLUMNNAME_debet);
		if (bd == null)
			 return Env.ZERO;
		return bd;
	}

	/** Set debetkzt.
		@param debetkzt debetkzt	  */
	public void setdebetkzt (BigDecimal debetkzt)
	{
		set_Value (COLUMNNAME_debetkzt, debetkzt);
	}

	/** Get debetkzt.
		@return debetkzt	  */
	public BigDecimal getdebetkzt () 
	{
		BigDecimal bd = (BigDecimal)get_Value(COLUMNNAME_debetkzt);
		if (bd == null)
			 return Env.ZERO;
		return bd;
	}

	/** Set Description.
		@param Description 
		Optional short description of the record
	  */
	public void setDescription (String Description)
	{
		set_Value (COLUMNNAME_Description, Description);
	}

	/** Get Description.
		@return Optional short description of the record
	  */
	public String getDescription () 
	{
		return (String)get_Value(COLUMNNAME_Description);
	}

	public I_FI_ReconciliationAct getFI_ReconciliationAct() throws RuntimeException
    {
		return (I_FI_ReconciliationAct)MTable.get(getCtx(), I_FI_ReconciliationAct.Table_Name)
			.getPO(getFI_ReconciliationAct_ID(), get_TrxName());	}

	/** Set FI_ReconciliationAct.
		@param FI_ReconciliationAct_ID FI_ReconciliationAct	  */
	public void setFI_ReconciliationAct_ID (int FI_ReconciliationAct_ID)
	{
		if (FI_ReconciliationAct_ID < 1) 
			set_Value (COLUMNNAME_FI_ReconciliationAct_ID, null);
		else 
			set_Value (COLUMNNAME_FI_ReconciliationAct_ID, Integer.valueOf(FI_ReconciliationAct_ID));
	}

	/** Get FI_ReconciliationAct.
		@return FI_ReconciliationAct	  */
	public int getFI_ReconciliationAct_ID () 
	{
		Integer ii = (Integer)get_Value(COLUMNNAME_FI_ReconciliationAct_ID);
		if (ii == null)
			 return 0;
		return ii.intValue();
	}

	/** Set fi_reconciliationactline.
		@param fi_reconciliationactline_ID fi_reconciliationactline	  */
	public void setfi_reconciliationactline_ID (int fi_reconciliationactline_ID)
	{
		if (fi_reconciliationactline_ID < 1) 
			set_ValueNoCheck (COLUMNNAME_fi_reconciliationactline_ID, null);
		else 
			set_ValueNoCheck (COLUMNNAME_fi_reconciliationactline_ID, Integer.valueOf(fi_reconciliationactline_ID));
	}

	/** Get fi_reconciliationactline.
		@return fi_reconciliationactline	  */
	public int getfi_reconciliationactline_ID () 
	{
		Integer ii = (Integer)get_Value(COLUMNNAME_fi_reconciliationactline_ID);
		if (ii == null)
			 return 0;
		return ii.intValue();
	}
}